/**
 * 
 */
package org.foreningsgatan.genetics;

import java.io.Serializable;

import org.foreningsgatan.genetics.NewGenerationTest.Actions;
import org.foreningsgatan.genetics.NewGenerationTest.DataSources;

public class Environment implements SimulationEnvironment<DataSources, Actions>, Serializable {
	private int life = 0;
	
	@Override
	public void act() {
		life--;
	}

	@Override
	public boolean simulationActive() {
		return life > 0;
	}

	@Override
	public void perform(Actions action) {}

	@Override
	public float read(DataSources dataSource) {
		return 0;
	}

	@Override
	public void resetAll() {
		life = 10;
	}

	@Override
	public SimulationEnvironment<DataSources, Actions> cloneAndReset() {
		Environment e = new Environment();
		e.resetAll();
		
		return e;
	}

	@Override
	public int compare(ResultSet o1, ResultSet o2) {
		return 0;
	}

	@Override
	public void applyResult(ResultSet resultSet) {}	
}